/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package result.impl;

import bRM_LL73.BRM_LL73Package;
import bRM_LL73.impl.BRM_LL73PackageImpl;
import basicModelType1.BasicModelType1Package;

import basicModelType1.impl.BasicModelType1PackageImpl;

import basicModelType2.BasicModelType2Package;

import basicModelType2.impl.BasicModelType2PackageImpl;

import boundRMLL73.BoundRMLL73Package;

import boundRMLL73.impl.BoundRMLL73PackageImpl;

import completeModel.CompleteModelPackage;

import completeModel.impl.CompleteModelPackageImpl;

import genArchi.GenArchiPackage;

import genArchi.impl.GenArchiPackageImpl;

import mH1.MH1Package;
import mH1.impl.MH1PackageImpl;
import mH2.MH2Package;
import mH2.impl.MH2PackageImpl;
import mS.MSPackage;
import mS.impl.MSPackageImpl;
import node1.Node1Package;
import node1.impl.Node1PackageImpl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EPackageImpl;

import pUNB.PUNBPackage;
import pUNB.impl.PUNBPackageImpl;
import procUseNB.ProcUseNBPackage;

import procUseNB.impl.ProcUseNBPackageImpl;

import result.ResultFactory;
import result.ResultPackage;
import result.Results;
import result.SchedulingResult;

import resultsWCRT.ResultsWCRTPackage;
import resultsWCRT.impl.ResultsWCRTPackageImpl;
import tEDF_LL73.TEDF_LL73Package;
import tEDF_LL73.impl.TEDF_LL73PackageImpl;
import tRM_LL73.TRM_LL73Package;
import tRM_LL73.impl.TRM_LL73PackageImpl;
import tRM_RTNB.TRM_RTNBPackage;
import tRM_RTNB.impl.TRM_RTNBPackageImpl;
import techEDFLL73.TechEDFLL73Package;

import techEDFLL73.impl.TechEDFLL73PackageImpl;

import techLL73.TechLL73Package;

import techLL73.impl.TechLL73PackageImpl;

import techResponseTimeNB.TechResponseTimeNBPackage;

import techResponseTimeNB.impl.TechResponseTimeNBPackageImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class ResultPackageImpl extends EPackageImpl implements ResultPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass schedulingResultEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EEnum resultsEEnum = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see result.ResultPackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private ResultPackageImpl() {
		super(eNS_URI, ResultFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this
	 * model, and for any others upon which it depends.  Simple
	 * dependencies are satisfied by calling this method on all
	 * dependent packages before doing anything else.  This method drives
	 * initialization for interdependent packages directly, in parallel
	 * with this package, itself.
	 * <p>Of this package and its interdependencies, all packages which
	 * have not yet been registered by their URI values are first created
	 * and registered.  The packages are then initialized in two steps:
	 * meta-model objects for all of the packages are created before any
	 * are initialized, since one package's meta-model objects may refer to
	 * those of another.
	 * <p>Invocation of this method will not affect any packages that have
	 * already been initialized.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static ResultPackage init() {
		if (isInited) return (ResultPackage)EPackage.Registry.INSTANCE.getEPackage(ResultPackage.eNS_URI);

		// Obtain or create and register package
		ResultPackageImpl theResultPackage = (ResultPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ResultPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ResultPackageImpl());

		isInited = true;

		// Obtain or create and register interdependencies
		BRM_LL73PackageImpl theBRM_LL73Package = (BRM_LL73PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BRM_LL73Package.eNS_URI) instanceof BRM_LL73PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BRM_LL73Package.eNS_URI) : BRM_LL73Package.eINSTANCE);
		GenArchiPackageImpl theGenArchiPackage = (GenArchiPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GenArchiPackage.eNS_URI) instanceof GenArchiPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GenArchiPackage.eNS_URI) : GenArchiPackage.eINSTANCE);
		MH1PackageImpl theMH1Package = (MH1PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MH1Package.eNS_URI) instanceof MH1PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MH1Package.eNS_URI) : MH1Package.eINSTANCE);
		MH2PackageImpl theMH2Package = (MH2PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MH2Package.eNS_URI) instanceof MH2PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MH2Package.eNS_URI) : MH2Package.eINSTANCE);
		MSPackageImpl theMSPackage = (MSPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MSPackage.eNS_URI) instanceof MSPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MSPackage.eNS_URI) : MSPackage.eINSTANCE);
		Node1PackageImpl theNode1Package = (Node1PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Node1Package.eNS_URI) instanceof Node1PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Node1Package.eNS_URI) : Node1Package.eINSTANCE);
		PUNBPackageImpl thePUNBPackage = (PUNBPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PUNBPackage.eNS_URI) instanceof PUNBPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PUNBPackage.eNS_URI) : PUNBPackage.eINSTANCE);
		ResultsWCRTPackageImpl theResultsWCRTPackage = (ResultsWCRTPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResultsWCRTPackage.eNS_URI) instanceof ResultsWCRTPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResultsWCRTPackage.eNS_URI) : ResultsWCRTPackage.eINSTANCE);
		TEDF_LL73PackageImpl theTEDF_LL73Package = (TEDF_LL73PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TEDF_LL73Package.eNS_URI) instanceof TEDF_LL73PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TEDF_LL73Package.eNS_URI) : TEDF_LL73Package.eINSTANCE);
		TRM_LL73PackageImpl theTRM_LL73Package = (TRM_LL73PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TRM_LL73Package.eNS_URI) instanceof TRM_LL73PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TRM_LL73Package.eNS_URI) : TRM_LL73Package.eINSTANCE);
		TRM_RTNBPackageImpl theTRM_RTNBPackage = (TRM_RTNBPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TRM_RTNBPackage.eNS_URI) instanceof TRM_RTNBPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TRM_RTNBPackage.eNS_URI) : TRM_RTNBPackage.eINSTANCE);

		// Create package meta-data objects
		theResultPackage.createPackageContents();
		theBRM_LL73Package.createPackageContents();
		theGenArchiPackage.createPackageContents();
		theMH1Package.createPackageContents();
		theMH2Package.createPackageContents();
		theMSPackage.createPackageContents();
		theNode1Package.createPackageContents();
		thePUNBPackage.createPackageContents();
		theResultsWCRTPackage.createPackageContents();
		theTEDF_LL73Package.createPackageContents();
		theTRM_LL73Package.createPackageContents();
		theTRM_RTNBPackage.createPackageContents();

		// Initialize created meta-data
		theResultPackage.initializePackageContents();
		theBRM_LL73Package.initializePackageContents();
		theGenArchiPackage.initializePackageContents();
		theMH1Package.initializePackageContents();
		theMH2Package.initializePackageContents();
		theMSPackage.initializePackageContents();
		theNode1Package.initializePackageContents();
		thePUNBPackage.initializePackageContents();
		theResultsWCRTPackage.initializePackageContents();
		theTEDF_LL73Package.initializePackageContents();
		theTRM_LL73Package.initializePackageContents();
		theTRM_RTNBPackage.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theResultPackage.freeze();

		return theResultPackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getSchedulingResult() {
		return schedulingResultEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getSchedulingResult_Result() {
		return (EAttribute)schedulingResultEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EEnum getResults() {
		return resultsEEnum;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ResultFactory getResultFactory() {
		return (ResultFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		schedulingResultEClass = createEClass(SCHEDULING_RESULT);
		createEAttribute(schedulingResultEClass, SCHEDULING_RESULT__RESULT);

		// Create enums
		resultsEEnum = createEEnum(RESULTS);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Obtain other dependent packages
		GenArchiPackage theGenArchiPackage = (GenArchiPackage)EPackage.Registry.INSTANCE.getEPackage(GenArchiPackage.eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes
		schedulingResultEClass.getESuperTypes().add(theGenArchiPackage.getNode());

		// Initialize classes and features; add operations and parameters
		initEClass(schedulingResultEClass, SchedulingResult.class, "SchedulingResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getSchedulingResult_Result(), this.getResults(), "result", null, 1, 1, SchedulingResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		// Initialize enums and add enum literals
		initEEnum(resultsEEnum, Results.class, "Results");
		addEEnumLiteral(resultsEEnum, Results.UNDETERMINED);
		addEEnumLiteral(resultsEEnum, Results.SCHEDULABLE);
		addEEnumLiteral(resultsEEnum, Results.NON_SCHEDULABLE);

		// Create resource
		createResource(eNS_URI);
	}

} //ResultPackageImpl
